#!/bin/sh /etc/rc.common
# MSR解锁功耗墙服务

START=99
USE_PROCD=1

boot() {
    procd_open_instance
    procd_set_param command /bin/sh -c "/msr-tool/wrmsr 0x610 0x00008f00 -p 0; /msr-tool/wrmsr 0x610 0x00008f00 -p 1; /msr-tool/wrmsr 0x610 0x00008f00 -p 2; /msr-tool/wrmsr 0x610 0x00008f00 -p 3"
    procd_set_param stdout 0
    procd_set_param stderr 0
    procd_close_instance
}